<template>
  <div class="device-info">
    设备信息管理
    <hr />
    <span v-for="item in getDateParam" :key="item+1">
      {{item.getFullYear()+'-'+(item.getMonth()+1)+'-'+ item.getDate()}}
      <br />
    </span>
  </div>
</template>

<script>
export default {
  name: "DeviceInfo",
  data() {
    return {
      dataList: []
    };
  },
  computed: {
    getDateParam() {
      return this.$store.state.dateParam;
    }
  },
  watch: {
    getDateParam() {
      this.findData();
    }
  },
  methods: {
    findData() {
      this.dataList = this.getDateParam;
    }
  }
};
</script>

<style scoped>
.device-info {
  padding: 30px;
}
</style>
